#! /bin/bash
if [ $1 ]
then
    sudo hostnamectl set-hostname $1
else
    echo host hostnameyouwant
fi
